<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_base_common_ques".
 *
 * @property string $id
 * @property string $content 问题内容
 * @property string $operation_system 操作系统类型
 * @property string $ques_type 问题类型
 * @property string $client_version 版本号
 * @property string $create_by
 * @property string $create_time
 * @property string $update_by
 * @property string $update_time
 * @property int $del_flag 删除标识
 */
class TBaseCommonQues extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_base_common_ques';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['create_time', 'update_time'], 'safe'],
            [['id', 'create_by', 'update_by'], 'string', 'max' => 36],
            [['content'], 'string', 'max' => 255],
            [['operation_system', 'ques_type', 'client_version'], 'string', 'max' => 64],
            [['del_flag'], 'integer'],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'content' => 'Content',
            'operation_system' => 'Operation System',
            'ques_type' => 'Ques Type',
            'client_version' => 'Client Version',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
        ];
    }
}
